home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / internet / other / mail / pathalia.zoo / src / makefile < prev    next >
Encoding:
Makefile  |  1991-01-12  |  1.5 KB  |  68 lines

  1. #!/bin/make -f
  2. # pathalias -- by steve bellovin, as told to peter honeyman
  3.  
  4. ### begin configuration section
  5. ###
  6. # if you can't or don't intend to use dbm files,
  7. # don't bother with DBM or makedb
  8. DBM = -ldbm
  9. # or if you roll your own ...
  10. # DBM = dbm.o
  11. ###
  12. # where is getopt (if not in the c library)?
  13. GETOPT =
  14. ### end of configuration section 
  15.  
  16. # note: parse.y -> parse.c is commented out below (most don't have YACC)
  17.  
  18. CC = cc
  19. CFLAGS = -O -DATARI
  20. YFLAGS = -d
  21.  
  22. OBJ = addlink.o addnode.o local.o main.o mapit.o mapaux.o mem.o parse.o printit.o getopt.o
  23. HDRS = def.h config.h
  24. CSRC = addlink.c addnode.c local.c main.c mapit.c mapaux.c mem.c printit.c getopt.c
  25. LSRC = $(CSRC) parse.c
  26. SRC = $(CSRC) parse.y makedb.c arpatxt.c
  27.  
  28. pathalia.ttp: $(OBJ)
  29.     $(CC) $(OBJ) -o pathalia.ttp
  30.  
  31. all: pathalia.ttp makedb arpatxt
  32.  
  33. $(OBJ):    $(HDRS)
  34.  
  35. # if you actually have YACC (or compatible) de-comment this
  36. #parse.c: parse.y $(HDRS)
  37. #    $(YACC) $(YFLAGS) parse.y
  38. #    mv y_tab.c parse.c
  39.  
  40. makedb: makedb.o
  41.     $(CC) makedb.o $(LDFLAGS) $(DBM) -o makedb
  42.  
  43. makedb.o: config.h
  44.  
  45. arpatxt: arpatxt.o
  46.     $(CC) arpatxt.o $(LDFLAGS) -o arpatxt
  47.  
  48. clean:
  49.     rm -f *.o y.tab.? parse.c
  50.  
  51. clobber: clean
  52.     rm -f pathalias makedb arpatxt
  53.  
  54. tags: $(SRC) $(HDRS)
  55.     ctags -w $(HDRS) $(SRC)
  56.  
  57. bundle:
  58.     @bundle README CHANGES pathalias.1 Makefile ${HDRS} ${SRC}
  59.  
  60. lint:    $(LSRC)
  61.     lint $(CFLAGS) $(LSRC)
  62.     lint makedb.c
  63.     lint arpatxt.c
  64.  
  65. install:
  66.     @echo "install pathalias, makedb, arpatxt, and pathalias.1"
  67.     @echo "according to local conventions"
  68.